import request from '@/utils/request'

export function illnessDrugList(query) {
  return request({
    url: 'risk/illness/drug/assigned',
    method: 'get',
    params: query
  })
}

  export function illnessDrugAdd(data) {
    return request({
      url: '/risk/illness/drug/add',
      method: 'post',
      data
    })
  }

    export function illnessDrugEdit(data) {
    return request({
      url: '/risk/illness/drug/edit',
      method: 'post',
      data
    })
  }

    export function illnessDrugDel(id) {
    return request({
      url: '/risk/illness/drug/delete',
      method: 'get',
      params: {id}
    })
  }
